//
//  Contact.h
//  OC_05_数组_字典和集合
//
//  Created by wyx on 16/3/1.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Contact : NSObject
//实例变量：姓名(拼音，首字母大写)、性别、电话号码、住址、分组名称、年龄。方法：自定义初始化方法(姓名、电话号码)、显示联系人信息。

@property (nonatomic,retain) NSString *name;
@property (nonatomic,retain) NSString *sex;
@property (nonatomic,assign) NSInteger number;
@property (nonatomic,retain) NSString *addres;
@property (nonatomic,assign) NSString *nameOfGroup;
@property (nonatomic,assign) NSInteger age;
#pragma mark - 初始化
- (instancetype)initWithName:(NSString *)name sex:(NSString *)sex number:(NSInteger)number addres:(NSString *)addres nameOfGroup:(NSString *)nameOfGroup age:(NSInteger)age;
#pragma mark - 构造器 姓名 电话号
+ (instancetype)contact;
+ (instancetype)contactWithName:(NSString *)name sex:(NSString *)sex number:(NSInteger)number addres:(NSString *)addres nameOfGroup:(NSString *)nameOfGroup age:(NSInteger)age;
#pragma mark - 显示联系人信息
- (void)showContact:(Contact *)con;
@end
